﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace OAWeb.Models
{
    public class Question
    {
        public int ID { get; set; }
        [Required]
        [Display(Name ="类型")]
        public string Type { get; set; }
        [Required]
        [Display(Name ="科目ID")]
        public int SubjectID { get; set; }
        [Required]
        [Display(Name ="知识点ID")]
        public int KnowledgeID { get; set; }
        [Display(Name ="关键字")]
        public string Keywords { get; set; }
        [Display(Name ="名称")]
        public string Namme { get; set; }
        [Required]
        [Display(Name ="内容")]
        public string Content { get; set; }
        [Required]
        [Display(Name ="参考答案")]
        public string Answer { get; set; }
        [Display(Name="作者")]
        public string Writer { get; set; }
        [Required]
        [Display(Name ="难度")]
        [Range(1,5)]
        public byte Difficuly { get; set; }
        [Display(Name ="创建日期")]
        public DateTime CreationTime { get; set; }
        [Display(Name ="修改日期")]
        public DateTime AlterTime { get; set; }
        [Display(Name ="备注")]
        public string Remark { get; set; }
    }
}